package com.yunchang.springboot.mapper.base;

import com.yunchang.springboot.models.base.BaseAsinSkuRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BaseAsinSkuRelationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BaseAsinSkuRelation record);

    int insertSelective(BaseAsinSkuRelation record);

    BaseAsinSkuRelation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BaseAsinSkuRelation record);

    int updateByPrimaryKey(BaseAsinSkuRelation record);

    /**
     * 根据sku获取对象
     * @param sku
     * @param asin
     * @return
     */
    BaseAsinSkuRelation selectBySku(@Param("sku") Integer sku, @Param("asin") String asin);

}